<?php defined('_JEXEC') or die('Restricted access');

JHtml::_('behavior.tooltip');
$listOrder = $this->filter_order;//$this->escape($this->state->get('list.ordering'));
$listDirection = $this->filter_order_Dir;//$this->escape($this->state->get('list.direction'));

?>
<div style="width:30%">
	<form action="<?php echo JRoute::_('index.php?option=com_webide&view=options');?>" method="post" name="adminForm" id="adminForm">
		<div><?php echo $this->page->getResultsCounter();?></div>
		<table class="adminlist">
			<thead>
				<tr>
					<th>
						<input type="checkbox" name="toggle" value="" class="checklist-toggle" title="<?php echo JText::_('JGLOBAL_CHECK_ALL'); ?>" onclick="Joomla.checkAll(this)" />
					</th>
					<th>
						<?php echo JHtml::_('grid.sort', 'Name', 'name', $listDirection, $listOrder); ?>
					</th>
					<th>
						<?php echo JHtml::_('grid.sort', 'Value', 'value', $listDirection, $listOrder); ?>
					</th>
					<th>
						<?php echo JHtml::_('grid.sort', 'Description', 'description', $listDirection, $listOrder); ?>
					</th>
					<th class="nowrap">
						<?php echo JHtml::_('grid.sort', 'Id', 'id', $listDirection, $listOrder); ?>
					</th>
				</tr>
			</thead>
			
			<tbody>
				<?php foreach ($this->items as $i => $item) : ?>
				
				<tr class="row<?php echo $i % 2; ?>">
					<td class="center checklist">
						<?php echo JHtml::_('grid.id', $i, $item->id); ?>
					</td>
					<td>
						<?php echo $this->escape($item->name); ?>
					</td>
					<td class="center">
						<?php echo $this->escape($item->description); ?>
					</td>
					<td class="center">
						<?php echo $this->escape($item->value); ?>
					</td>
					<td class="center">
						<?php echo (int) $item->id; ?>
					</td>
				</tr>
				<?php endforeach; ?>
			</tbody>
			<tfoot>
				<tr>
					<td colspan="5">
						<?php echo $this->page->getListFooter();?>
					</td>
				</tr>
			</tfoot>		
		</table>
	
		<input type="hidden" name="task" value="add" />
		<input type="hidden" name="boxchecked" value="0" />
		<input type="hidden" name="filter_order" value="<?php echo $listOrder; ?>" />
		<input type="hidden" name="filter_order_Dir" value="<?php echo $listDirection; ?>" />
		<?php echo JHtml::_('form.token'); ?>
	</form>
</div>